
<form method="post" action="/oss/?r=settingSpecial/doEdit">
    <{include file='../common_params.tpl'}>
    <input type="hidden" name="id" value="<{$info.id}>" />

    <div class="box box-black">
        <div class="box-body">
            <table class="table table-bordered">
                <colgroup>
                    <col style="width: 20%;"></col>
                    <col style="width: 80%;"></col>
                </colgroup>

                <tr>
                    <th class="th-label">专服名称</th>
                    <td>
                        <input type="text" name="name" class="form-control inline" value="<{$info.name}>" placeholder="" />
                    </td>
                </tr>
                            
                
                <tr>
                    <th class="th-label">专服ID</th>
                    <td>
                        <input type="text" name="special_id" class="form-control inline" value="<{$info.special_id}>" <{if $is_edit == 2 }>readonly="readonly"<{/if}> placeholder="" />
                    </td>
                </tr>
                
                <tr>
                    <th class="th-label">LOGIN_KEY</th>
                    <td>
                        <input type="text" name="login_key" class="form-control" value="<{$info.login_key}>" placeholder="" />
                    </td>
                </tr>
                
                <tr>
                    <th class="th-label">CHARGE_KEY</th>
                    <td>
                        <input type="text" name="charge_key" class="form-control" value="<{$info.charge_key}>" placeholder="" />
                    </td>
                </tr>

            </table>
        </div>

        <div class="box-footer">
            <a href="<{$backUrl}>" class="btn btn-default">返回</a>
            <button type="submit" name="sub" class="btn btn-default pull-right">保存</button>
            <input type="hidden" name="page" value="<{$page}>" />
        </div>
    </div>
</form>


<script type="text/javascript">
    $(function(){
    	$('button[name="sub"]').click(function(){
        	var name = $('input[name="name"]').val();
        	if(name == ''){
        		layer.alert('请填写专服名称', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
        	
        	var special_id = $('input[name="special_id"]').val();
        	if(special_id == ''){
        		layer.alert('请填写专服标识', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
        	
        	var login_key = $('input[name="login_key"]').val();
        	if(login_key == ''){
        		layer.alert('请填写login_key', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
        	
        	var charge_key = $('input[name="charge_key"]').val();
        	if(charge_key == ''){
        		layer.alert('请填写charge_key', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
            
            
        });
    });
</script>

